<?php
/**
 * Created by PhpStorm.
 * BuyUser: u
 * Date: 2018/11/8
 * Time: 14:43
 */
namespace common\sources\write\test;
class TestAccess implements ITestAccess
{
    public function addTest($data)
    {
        // TODO: Implement addTest() method.
        $insert = 'INSERT INTO test ( name)
                   VALUES ( :name)';
        return \Yii::$app->db->createCommand($insert )->bindValue([
            ':name' => $data['name']
        ])->execute();
    }

}